-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update TiUP offline deployment; rename tiup mirrors to tiup mirror #3425
update TiUP offline deployment; rename tiup mirrors to tiup mirror #3425
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
@@ -224,7 +224,7 @@ alertmanager_servers: | |||
|
|||
## 6. 部署 TiDB 集群 | |||
|
|||
`/path/to/mirror` 是 `tiup mirrors <target-dir>` 中输出的 package 所在离线机器的位置: | |||
`/path/to/mirror` 是执行 `local_install.sh` 提示中输出的离线镜像包的位置: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`/path/to/mirror` 是执行 `local_install.sh` 提示中输出的离线镜像包的位置: | |
`/path/to/mirror` 是执行 `local_install.sh` 命令时输出的离线镜像包的位置: |
DNM now, I have some other documents to update. |
@@ -44,7 +44,7 @@ category: how-to | |||
{{< copyable "shell-regular" >}} | |||
|
|||
```bash | |||
tiup mirrors package --os=linux v4.0.0 | |||
tiup mirror clone package v4.0.0 --os=linux --arch=amd64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
或者引导到官方下载页面直接下载离线包,可以给两个选项。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
tiup/tiup-mirror.md
Outdated
--- | ||
title: 搭建私有镜像 | ||
category: tools | ||
aliases: ['/docs-cn/dev/reference/tools/tiup/mirror/'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aliases: ['/docs-cn/dev/reference/tools/tiup/mirror/'] | |
aliases: ['/docs-cn/dev/tiup/tiup-mirrors/','/docs-cn/dev/reference/tools/tiup/mirror/'] |
文件改名涉及url的变动,需要加个新 alias
tiup mirrors 组件是改名成 tiup mirror 了吗? @lichunzhu @lonng 搜了下全站的文档,发现还有几处用的是 tiup mirrors:
如果组件改名了,那么 url、变量名是否也需要相应更新下? |
这几个不影响,tiup mirrors 弃用了,改成 tiup mirror |
ok, @lichunzhu 更新完了吗?ready for review 了麻烦 at 我下 |
wget https://download.pingcap.org/xxx.tar.gz | ||
mv xxx.tar.gz package.tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
等上传包后,我会更新这里,然后再合 PR
@yikeke 可以看了,现在 tiup 从 pingcap-incubar 移到了 pingcap,tiup-cluster 合入了 tiup repo,更新了一下 link。离线包这里我会在上传包后更新包名 |
tiup/tiup-mirror.md
Outdated
|
||
### 使用 TiUP 离线安装 TiDB 集群 | ||
|
||
以在隔离的环境中安装一个 v4.0.0-rc 的 TiDB 集群为例,可以执行以下步骤: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用 v4.0.0,引导用户用最新的版本
tiup/tiup-package.md
Outdated
@@ -66,7 +66,7 @@ Flags: | |||
|
|||
环境变量 `TIUP_COMPONENT_INSTALL_DIR` 会由 TiUP 在运行时传入,指向该组件的安装目录。 | |||
|
|||
3. 参考[搭建私有镜像](/tiup/tiup-mirrors.md) 搭建离线镜像或私有镜像(因为目前官方镜像未开放 publish 功能,所以不能发布自己的包),搭建完之后确保 `TIUP_MIRRORS` 变量指向搭建的镜像。 | |||
3. 参考[搭建私有镜像](/tiup/tiup-mirror.md) 搭建离线镜像或私有镜像(因为目前官方镜像未开放 publish 功能,所以不能发布自己的包),搭建完之后确保 `TIUP_MIRRORS` 变量指向搭建的镜像。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以把 tiup-package 删掉了,我们以后不需要这个组件了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
tiup/tiup-mirror.md
Outdated
|
||
### 使用 TiUP 离线安装 TiDB 集群 | ||
|
||
这里可以参考[使用 TiUP 离线部署](/production-offline-deployment-using-tiup.md)安装 TiUP 离线镜像,部署并启动 TiDB 集群。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里可以参考[使用 TiUP 离线部署](/production-offline-deployment-using-tiup.md)安装 TiUP 离线镜像,部署并启动 TiDB 集群。 | |
参考[使用 TiUP 离线部署](/production-offline-deployment-using-tiup.md#方式二使用-tiup-mirror-clone-命令手动打包离线组件包)安装 TiUP 离线镜像,部署并启动 TiDB 集群。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in 637b6e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ready for merge now
…unzhu/docs-cn into updateTiUPOfflineDeployment
/merge |
/run-all-tests |
Signed-off-by: sre-bot <[email protected]>
cherry pick to release-4.0 in PR #3455 |
* translate pingcap/docs-cn#3204 and pingcap/docs-cn#3425 * align https://github.com/pingcap/docs-cn/pull/3570/files * trigger ci Co-authored-by: pingcap-github-bot <[email protected]>
* create and rename file; update TOC and docs guide * align the rest of pingcap/docs-cn#3197 * Update TOC.md * add an alias * align https://github.com/pingcap/docs-cn/pull/3417/files * align pingcap/docs-cn#3463 and pingcap/docs-cn#3425 * update aliases * Apply suggestions from code review Co-authored-by: TomShawn <[email protected]> * add summary and update format * Apply suggestions from code review Co-authored-by: TomShawn <[email protected]> * Update tiup/tiup-component-management.md Co-authored-by: TomShawn <[email protected]>
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?